<?php

    $listid		= gpc_getStringArray("listid");
    $liststatus	= gpc_getStringArray("liststatus");
    $listorder	= gpc_getStringArray("listorder");

    $countlist = count($listid);

    for ($i = 0; $i < $countlist; $i ++)
    {
        $sql_update = "UPDATE  tblnews_content SET
        		  iStatus	 = '$liststatus[$i]',
        		  iOrder   ='$listorder[$i]'
        		  WHERE  iId = $listid[$i]";

        $dbsql->query($sql_update);
    }

    $cActions = " Update Status Content $module";
    Insert_Tracking($cActions);

    page_transfer("Update Content Status Success !",$pagetr);

    exit();

?>
